package cn.hxzy.service;

import cn.hxzy.entity.order.Waybill;
import cn.hxzy.entity.order.vo.OrderVo;
import cn.hxzy.entity.sourceEntity.SourceList;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.PathVariable;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hk
 * @since 2023-06-23
 */
public interface WaybillService extends IService<Waybill> {
    //修改货源，修改装货量，余量
    int zhuangCheUpdate(String sourceId, BigDecimal suttle,double stock);
    String createWaybill(OrderVo orderVo);
    int createQDWaybillLog(String s);

    /**
     * 根据货源编号查看运单记录
     * @param sourceId
     * @return
     */
    List<Waybill> selectBySourceId(String sourceId,int status);

    /**
     * 根据货源编号和车牌号查询运单
     * @param sourceId
     * @param licensePlateNumber
     * @return
     */
    List<Waybill> searchWaybill(String sourceId,String licensePlateNumber);
}
